<%@ include file="/jsp/controlHead.jsp" %>
<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
</head>
<script>
function goQuery(){
	//parentShowWaiting();
	teacherForm.submit();
}
//IFRAME高度获取方法
function computeIFrame(){
	return "500px";
	var height= $("div.position").attr("offsetheight") + $("div.hide").attr("offsetheight") + $("div.content").attr("offsetheight");
	return  document.body.clientHeight - height;
}
//查询条件隐藏
function doShow() {
	if(document.getElementById('search').style.display == 'none') {
		document.getElementById('search').style.display = 'block';
		document.getElementById('advance').innerHTML = "<img border='0' src='<%=_base%>/images/index/advanced_search.gif'>隐藏查询条件";
	} else {
		document.getElementById('search').style.display = 'none';
		document.getElementById('advance').innerHTML = "<img border='0' src='<%=_base%>/images/index/basic_search.gif'>显示查询条件";
	}
	$("#_listFrame").attr("height","500px");
	_listFrame.resize();
}
</script>
<body>
	<div class="hide">
		<a href='#' id='advance' onclick='doShow();'><img border='0' src='<%=_base%>/images/index/advanced_search.gif'>隐藏查询条件</a>
	</div>
	<div class="content" id="search">
	<s:form name="teacherForm" action="teacher!list" theme="simple" method="post" target="listFrame">
		<input type="hidden" name="pager.pageSize" value="<%=com.asiainfo.crm.core.web.Pager.DEFAULT_PAGE_SIZE %>"/>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<td>教师姓名： </td>
				<td>
					<s:textfield id="teacher.name" name="teacher.name"  />
				</td>
				<td>生日： </td>
				<td>
					<s:textfield id="teacher.birthday" name="teacher.birthday" />
					<img onclick="WdatePicker({el:'teacher.birthday',dateFmt:'yyyy-MM-dd HH:mm:ss'})" src="<%=_base%>/images/icons/date.gif"  align="absmiddle">	
				</td>
			</tr>
			<tr>
				<td>电话： </td>
				<td>
					<s:textfield id="teacher.phone" name="teacher.phone"  />
				</td>
				<td>备注： </td>
				<td>
					<s:textfield id="teacher.note" name="teacher.note"  />
				</td>
			</tr>
			<tr>
				<td>性别： </td>
				<td>
					<s:textfield id="teacher.sex" name="teacher.sex"  />
				</td>
			</tr>
			
			<!-- 
			<tr>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string1" name="teacher.string1"  />
				</td>
			</tr>
			<tr>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string2" name="teacher.string2"  />
				</td>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string3" name="teacher.string3"  />
				</td>
			</tr>
			<tr>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string4" name="teacher.string4"  />
				</td>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string5" name="teacher.string5"  />
				</td>
			</tr>
			<tr>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string6" name="teacher.string6"  />
				</td>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string7" name="teacher.string7"  />
				</td>
			</tr>
			<tr>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string8" name="teacher.string8"  />
				</td>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string9" name="teacher.string9"  />
				</td>
			</tr>
			<tr>
				<td>： </td>
				<td>
					<s:textfield id="teacher.string10" name="teacher.string10"  />
				</td>
			</tr>
			
			 -->
			 
			 
			<tr>
				<td>
					&nbsp;
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<input name="Submit" type="button" class="Button" value="查询" onclick="goQuery()" accesskey="Q" title="快捷键ALT+Q">
				</td>
			</tr>
		</table>
	</s:form>
	</div>
	<iframe id="_listFrame" name="listFrame" marginWidth=0 marginHeight=0 src="<%=_base%>/qiansh/teacher!list.action?pager.exeQuery=false"
	frameBorder=0 width="100%" scrolling="auto"  onload="this.height=computeIFrame()" >	</iframe>
</body>
</html>
